import socket


def lookup_ip(hostname):
    return socket.gethostbyname(hostname)


# 使用函数
# hostname = 'www.google.com'
hostname = 'poi-test-02.software.dec'
ip_address = lookup_ip(hostname)
print(f"The IP address of {hostname} is {ip_address}")